::----
::-- This script packages the classes into a JAR file assuming that the compiled source is located 
::-- in a directory "bin" in the same directory this script is run
::----

@echo off

set tmp=pkg

if not exist pkg mkdir %tmp%

echo Copying latest build..
xcopy /h /e /y bin pkg

echo Creating package..
cd %tmp%
jar cvfm ../Installer.jar ../MANIFEST.MF com/
cd ..

rmdir /s /q %tmp%
